home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
2201_300
/
DISK2252
/
DISK2252.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-10
|
8KB
|
334 lines
ECHO OFF
a:
cd\
IF EXIST megacad.doc GOTO MENUEA
cls
echo Please insert Shareware Disc 1 and then type INSTALL again!
goto ende
:MENUEA
cls
TYPE MENUE1.DAT
A:GETKEY 35 18 SELECT:
IF ERRORLEVEL == 63 GOTO FEHLER1
IF ERRORLEVEL == 62 GOTO ENDE
IF NOT ERRORLEVEL == 61 goto error2
set a=E:\MEGACAD
set b= E:
set c=EL
goto janein1
:ERROR2
IF NOT ERRORLEVEL == 60 goto error3
set a=D:\MEGACAD
set b= D:
set c=DL
goto janein1
:error3
IF NOT ERRORLEVEL == 59 goto fehler1
set a=C:\MEGACAD
set b= C:
set c=CL
goto janein1
:fehler1
cls
echo Wrong entry! Please use only one of the function keys F1-F4.
echo .
pause
goto MENUEA
:janein1
CLS
ECHO All important MegaCAD files will be copied to %A%
ECHO Is that correct? Press J/N
:FRAGE1
a:GETKEY 1 5 INPUT:
IF ERRORLEVEL == 110 GOTO MENUEA
IF ERRORLEVEL == 106 GOTO COP1A
IF ERRORLEVEL == 79 GOTO FEHLER2
IF ERRORLEVEL == 78 GOTO MENUEA
IF ERRORLEVEL == 77 GOTO FEHLER2
IF ERRORLEVEL == 76 GOTO FEHLER2
IF ERRORLEVEL == 75 GOTO FEHLER2
IF ERRORLEVEL == 74 GOTO COP1A
:FEHLER2
cls
echo Please use only J or N to confirm.
echo .
pause
GOTO janein1
cls
:cop1a
%b%
md %a%
cls
cd %a%
md prt
md mac
cls
cd
echo Please exit program with CTRL-C if the directory stated above
echo is not the directory in which you wish to install MegaCAD
echo Otherwise confirm with any key.
echo .
pause
:MENUE2
cls
TYPE A:MENUE2.DAT
:MENUEe2
a:GETKEY 35 16 SELECT:
IF ERRORLEVEL 62 GOTO FEHLER6
IF ERRORLEVEL == 61 GOTO ENDE
IF ERRORLEVEL == 60 GOTO KA2
IF ERRORLEVEL == 59 GOTO KA1
:FEHLER6
cls
echo Wrong entry! Please use only one of the function keys F1 to F3.
echo .
pause
GOTO MENUE2
:KA1
CLS
ECHO You have selected the EGA adapter!
ECHO Is that correct? Press J/N
A:GETKEY 1 5 INPUT:
IF ERRORLEVEL == 110 GOTO MENUE2
IF ERRORLEVEL == 106 GOTO COP7
IF ERRORLEVEL == 79 GOTO FEHLER7
IF ERRORLEVEL == 78 GOTO MENUE2
IF ERRORLEVEL == 77 GOTO FEHLER7
IF ERRORLEVEL == 76 GOTO FEHLER7
IF ERRORLEVEL == 75 GOTO FEHLER7
IF ERRORLEVEL == 74 GOTO COP7
:FEHLER7
cls
echo Please use only J or N to confirm.
echo .
pause
GOTO ka1
:KA2
CLS
ECHO You have selected the Hercules graphics!
ECHO Is that correct? Press J/N
A:GETKEY 1 5 INPUT:
IF ERRORLEVEL == 110 GOTO MENUE2
IF ERRORLEVEL == 106 GOTO COP6
IF ERRORLEVEL == 79 GOTO FEHLER8
IF ERRORLEVEL == 78 GOTO MENUE2
IF ERRORLEVEL == 77 GOTO FEHLER8
IF ERRORLEVEL == 76 GOTO FEHLER8
IF ERRORLEVEL == 75 GOTO FEHLER8
IF ERRORLEVEL == 74 GOTO COP6
:FEHLER8
cls
echo Please use only J or N to confirm
echo .
pause
GOTO ka2
:COP6
echo on
CLS
set d=HG
goto cop7a
:cop7
echo on
cls
set c=EG
:cop7a
COPY A:*.PRT PRT
COPY A:*.MAC MAC
echo off
:MENUE12
cls
TYPE A:MENUE3.DAT
:MENUEe5
a:GETKEY 35 16 SELECT:
IF ERRORLEVEL 64 GOTO FEHLER16
IF ERRORLEVEL == 63 GOTO ENDE
IF ERRORLEVEL == 62 GOTO KA40
IF ERRORLEVEL == 61 GOTO KA30
IF ERRORLEVEL == 60 GOTO KA10
IF ERRORLEVEL == 59 GOTO KA20
:FEHLER16
cls
echo Wrong answer! PLease use only one of the function keys F1 to F3
echo .
pause
GOTO MENUE12
:KA10
CLS
ECHO You have selected the IBM-24 printer!
ECHO Is that correct? Press J/N
A:GETKEY 1 5 INPUT:
IF ERRORLEVEL == 110 GOTO MENUE12
IF ERRORLEVEL == 106 GOTO COP17
IF ERRORLEVEL == 79 GOTO FEHLER17
IF ERRORLEVEL == 78 GOTO MENUE12
IF ERRORLEVEL == 77 GOTO FEHLER17
IF ERRORLEVEL == 76 GOTO FEHLER17
IF ERRORLEVEL == 75 GOTO FEHLER17
IF ERRORLEVEL == 74 GOTO COP17
:FEHLER17
cls
echo Please use only J or N to confirm
echo .
pause
GOTO KA10
:KA20
CLS
ECHO You have selected the IBM printer 8!
ECHO Is that correct? Press J/N
A:GETKEY 1 5 INPUT:
IF ERRORLEVEL == 110 GOTO MENUE12
IF ERRORLEVEL == 106 GOTO COP16
IF ERRORLEVEL == 79 GOTO FEHLER18
IF ERRORLEVEL == 78 GOTO MENUE12
IF ERRORLEVEL == 77 GOTO FEHLER18
IF ERRORLEVEL == 76 GOTO FEHLER18
IF ERRORLEVEL == 75 GOTO FEHLER18
IF ERRORLEVEL == 74 GOTO COP16
:FEHLER18
cls
echo Please use only J or N to confirm
echo .
pause
GOTO KA20
:KA30
CLS
ECHO You have selected the EPSON printer!
ECHO Is that correct? Press J/N
A:GETKEY 1 5 INPUT:
IF ERRORLEVEL == 110 GOTO MENUE12
IF ERRORLEVEL == 106 GOTO COP18
IF ERRORLEVEL == 79 GOTO FEHLER19
IF ERRORLEVEL == 78 GOTO MENUE12
IF ERRORLEVEL == 77 GOTO FEHLER19
IF ERRORLEVEL == 76 GOTO FEHLER19
IF ERRORLEVEL == 75 GOTO FEHLER19
IF ERRORLEVEL == 74 GOTO COP18
:FEHLER19
cls
echo Please use only J or N to confirm
echo .
pause
GOTO KA30
:KA40
CLS
ECHO You have selected the NEC-P6 printer!
ECHO Is that correct? Press J/N
A:GETKEY 1 5 INPUT:
IF ERRORLEVEL == 110 GOTO MENUE12
IF ERRORLEVEL == 106 GOTO COP19
IF ERRORLEVEL == 79 GOTO FEHLER20
IF ERRORLEVEL == 78 GOTO MENUE12
IF ERRORLEVEL == 77 GOTO FEHLER20
IF ERRORLEVEL == 76 GOTO FEHLER20
IF ERRORLEVEL == 75 GOTO FEHLER20
IF ERRORLEVEL == 74 GOTO COP19
:FEHLER20
cls
echo Please use only J or N to confirm
echo .
pause
GOTO ka40
:COP16
set e=IBM1
goto weiter
:COP17
set e=IBM2
goto weiter
:COP18
set e=EPS1
goto weiter
:COP19
set e=NEC
:weiter
cls
echo off
del MEGACAD.INI
echo PRT:%a%\PRT\*.prt /* Search path for .PRT files */ >> MEGACAD.INI
echo MAC:%a%\MAC\*.mac /* Search path for .MAC files */ >> MEGACAD.INI
echo CDL:%a%\*.cdl /* Search path for .CDL files */ >> MEGACAD.INI
echo FNT:%a%\TFONT*.fnt /* PATH TEXT FONTS */ >> MEGACAD.INI
echo MAS:%a%\TFONT*.fnt /* PATH MASS FONTS */ >> MEGACAD.INI
echo TMP:%a%\*.TMP /* Path for intermediate files */ >> MEGACAD.INI
echo SPE:8 /* Mouse speed ( 1 - 10 ) */ >> MEGACAD.INI
echo MOV:10 /* Number MOVEABLE ELEMENTS */ >> MEGACAD.INI
echo CAL:1 /* CALCULATOR 1 = on / offs = 0 */ >> MEGACAD.INI
echo DEG:360 /* 'DEGREE PER COMPLETE CIRCLE */ >> MEGACAD.INI
if not "%d%"=="HG" goto cop7gg
echo MOD:MODE : 0 HGC /* GRAPHIC MODES */ >> MEGACAD.INI
echo BIO:0010 0000 0000 0000 /* BIOS CALL EGA/HGC */ >> MEGACAD.INI
echo DIM:639 349 16 25 80 /* CARD PARAMETER */ >> MEGACAD.INI
goto cop7g
:cop7gg
echo MOD:MODE : 0 EGA /* GRAPHIC MODE */ >> MEGACAD.INI
echo BIO:0010 0000 0000 0000 /* BIOS CALL EGA/HGC */ >> MEGACAD.INI
echo DIM:639 349 16 25 80 /* CARD PARAMETER */ >> MEGACAD.INI
:cop7g
echo RET:10.8*8.1 /* SCREEN DISPLAY CORRECTION */ >> MEGACAD.INI
if not "%e%"=="IBM1" goto cop7gh1
echo PLD:IBMG60 /* Printer name */ >> MEGACAD.INI
goto cop6c
:cop7gh1
if not "%e%"=="IBM2" goto cop7gh2
echo PLD:IBMG240 /* Printer name */ >> MEGACAD.INI
goto cop6c
:cop7gh2
if not "%e%"=="EPS1" goto cop7gh3
echo PLD:EPSFX8H /* Printer name */ >> MEGACAD.INI
goto cop6c
:cop7gh3
echo PLD:NECP6H /* Printer name */ >> MEGACAD.INI
cls
:cop6c
ECHO Please insert Shareware Disc 2 in drive A: now.
ECHO After changing disc continue with any key
echo .
pause
a:
IF EXIST CONFIG.PRT GOTO cop6d
cls
echo That is not the Shareware Disc 2 from MegaCAD !
echo .
goto cop6c
:cop6d
%b%
echo on
:cop8
echo on
COPY A:EG_*.MCM
COPY A:*.TXT
COPY A:*.FNT
COPY A:*.DTA
COPY A:*.MAS
COPY A:FTASTEN.INI
COPY A:W_FILES.DAT
COPY A:CONFIG.PRT
echo off
:cop6f
cls
ECHO Please insert Shareware Disc 3 in drive A: now.
ECHO After changing disc continue with any key
echo .
pause
a:
IF EXIST mega.exe GOTO cop6g
cls
echo That is not the Shareware Disk 3 from MegaCAD !
echo .
goto cop6f
:cop6g
%b%
:cop9
echo on
COPY A:MEGA.EXE
echo off
cls
type A:ENDE.DAT
:ende
set A=
set B=
set C=
set D=
set E=
echo on